/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mancala;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author joshuasiebenaler
 */
public class HolePlacementAlgorithmLHPTest10 {
    
    public HolePlacementAlgorithmLHPTest10() {
    }
    
    @BeforeClass
    public static void setUpClass() {
    }
    
    @AfterClass
    public static void tearDownClass() {
    }
    
    @Before
    public void setUp() {
    }
    
    @After
    public void tearDown() {
    }


    /**
     * Test of LastHoleParity method, of class HolePlacementAlgorithm.
     */
    @Test
    public void testLastHoleParity() {
        System.out.println("LastHoleParity");
 int[] StonesInHoles = new int [16];
        
        StonesInHoles[0] = 227;
        StonesInHoles[1] = 2342347;
        StonesInHoles[2] = 234234237;
        StonesInHoles[3] = 4534537;
        StonesInHoles[4] = 3342347;
        StonesInHoles[5] = 456564567;
        StonesInHoles[6] = 456456457;
        StonesInHoles[7] = 565675687;
        StonesInHoles[8] = 5685687;
        StonesInHoles[9] = 566587;
        StonesInHoles[10] = 5685687;
        StonesInHoles[11] = 756;
        StonesInHoles[12] = -33337;
        StonesInHoles[13] = 234237;
        StonesInHoles[14] = 7222;
        StonesInHoles[15] = 227;

        int currenthole = -33333;
        int nexthole = 11213424;
        int expResult = 1;
        int result = HolePlacementAlgorithm.LastHoleParity(StonesInHoles, currenthole, nexthole);
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
       
    }

    
    
}
